#include <stdio.h>
char* interpret(char* command) {
    char* start = command;
    char* s = start;
    while (*command != '\0')
    {

        if (*command == 'G')
        {
            *start = 'G';
            start++;
        }
        else if (*command == '(' && *(command + 1) != ')')
        {
            *start = 'a';
            *(start + 1) = 'l';
            start += 2;
        }
        else if (*command == '(' && *(command + 1) == ')')
        {
            *start = 'o';
            start++;
        }
        command++;

    }
    *start = '\0';
    return s;
}
int main()
{
    char arr[10] = "G()()(al)";
    interpret(arr);
    printf("%s", arr);
	return 0;
}